<%@ page language="java" import="DataClass.User,DAO.RecordDao,DataClass.Record,java.util.ArrayList,java.util.List" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>查看所有的用户信息</title>
</head>
<body>
<%request.getRequestDispatcher("/listUserServlet").forward(request,response);%>
  <%--
     List<Record>rcd=new ArrayList<Record>();
  RecordDao dao=new RecordDao();
  rcd=dao.FindAll();
  %>-->
  <table class="table">
	<caption>用户信息记录</caption>
	<thead>
		<tr>
			<th>用户名</th>
			<th>书名</th>
			<th>ISBN</th>
			<th>借书时间</th>
			<th>还书时间</th>
		</tr>
	</thead>
	<tbody>
	<%for(Record r:rcd){ %>
		<tr class="active">
		<td><%=r.getUser_name() %></td>
			<td><%=r.getBook_name() %></td>
			<td><%=r.getBook_ISBN() %></td>
			
			<td><%=r.getBorrow_date() %></td>
			<td><%=r.getReturn_date() %></td>
		</tr>
		<% }%>
	</tbody>
</table>--%>
</body>
</html>